modifies funtion conditionals for login