parse signup and login