registration logic and gemfile
login logic