basic registration, buggy login