Added devise to handle authentication and tweaked frontend slightly