Add some test for page display of authentication-related functions. Add flash display to show errors if user does not use correct credentials.