Change login and register views so that the templates display an error