add user login ,reg function