login error management + sinatra conditionals