Add null:false, default: "" on email column on User model
Migration file for devise authentication
devise route for users
devise callback for User model
Add devise before_action callback on posts_controller