Fixed some user login and registration errors. Fixed imageview not updating after uploading a new picture.