added error message in RegisterActivity.java.