title Jobseeker Login

participant Jobseeker
participant System


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

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

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

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

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

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