add basic auth
register working