Changed login process to avoid session refresh timer #10