added devise and user stuff functioning