Created a login and flash notices