Removed flash error messages from login and fixed register button