modified the control class Login: created the main function that control
the login's behaviour
modified the control class home to use this new function