title Company Login

participant Company
participant System


entryspacing 1.2
Company->System:startLogin()
Company<--System:login form
Company->System:fillLoginForm(email, password)

alt empty form
loop send empty form
Company<--System:invalid form 
end 
else valid form, but email does not exit
loop email does not exist

Company<--System: email does not exist, try with diffrent email or go to register page
end

else valid form, but email not for company
loop email not for company

Company<--System: enter a diffrent email, or login as jobseeker
end
else valid form, but email and password do not match
loop email and password do not match

Company<--System: enter valid email and password
end
else success
Company<--System: login done successfully.
end