Added remember me functionality and error pages