added devise, added name field and flash messages