Moving login success and logout sucess in a proper file.