done login and register

1. finish login and register logic