added devise, login/logout and worked on database