Refactor user registration + update database migration