Fixed registration and tested login