Added LoginFunctionality