default login logic is implemented
templates code in login is modified