Finish the login and register controller

1.finish the login and register controller
2.@todo the filter