Login system now works.

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