registration works somehow; need to make better server validation handling