Logic in user_controller#login, views

Signed-off-by: SummerDAway <summerdaway@gmail.com>