login logic

Signed-off-by: Jeff Wells <jeff.wells@jobing.com>