login works with sinatra.