Adding devise functionality