added sign-in logic to the application.erb