updated login controller

Signed-off-by: Bo Bao <yourztrulybao@gmail.com>