Devise user model and some control flow for users