Implemented remote user authentication - closes #1