Login module is almost finished

completing the login module and the logic part in main service. But the
Ui of login has not been beautified.