error placeholder and login logic