Added error handling, finished registration / login interface