User authentication against OSPy's password. Some code clean-ups.