Added initial login routines