login mechanism registiration fixed