added authentication, fixed button styles, and reduced redundancy of flash notices