some code added in login class