Removed else clause in checklogin