Login logic added.