fixed login authentication fucnationlity on CIVLY