login and registration, closes #81