Add user login validation

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>