Added code for login script