get '/signin' do
  erb :'auth/signin'
end

post '/signin' do
  puts params
  redirect '/'
end

post '/signup' do
  user = User.new(params[:user])
  puts user.user_name
  puts user.password_digest
  redirect '/'
end

get '/signout' do
  'sign out user'
end
get '/signin' do
  erb :'auth/signin'
end

post '/signin' do
  puts params
  redirect '/'
end

post '/signup' do
  user = User.new(params[:user])
  if user.save
    session[:user_id] = user.id
    redirect '/'
  else
    redirect '/signin'
  end

  puts session
end

get '/signout' do
  'sign out user'
end
Update POST signup route to create user, save to DB and begin session
Update POST signup route to create user, save to DB and begin session
