fix login / registration