Refactor sinatra test logins