add sign in and register function

also fix some bug of map problem, partly changed some UI