Updated login. Uses OWIN and works correctly now!