fixed gem to allow login