added login fixing