Creates user authentication and tests for it.