title Company Register

participant Company
participant System


entryspacing 1.2
Company->System:startRegister()
Company<--System:register form
Company->System:fillRegisterForm(email, password,name,....)

alt empty form
loop send empty form
Company<--System:invalid form 
end 
else valid form, but email already exit
loop already existed email

Company<--System: email already exist, try with diffrent email
end

else valid form, but password is weak
loop password not strong

Company<--System: invalid password, enter strong password
end
else success
Company<--System: registration done successfully.
Company<--System: loginForm()

end