#4: added separate login for company and simple user
#4: added correct redirections after sign in and correct flash messages