String email, String username, String password, String company, String country, String firstName,
String lastName, String website, String address, String phone, String fieldOfWork, String redirect, String activationUrl
) throws DatabaseException, EmailServiceException {
if (StringUtils.isBlank(email)) {
throw new DatabaseException(ProblemType.INVALIDARGUMENTS);
<BUG>}
if (StringUtils.isBlank(username)) {</BUG>
throw new DatabaseException(ProblemType.NO_USERNAME);
}
if (findByName(username) != null) {

String email, String username, String password, String company, String country, String firstName,
String lastName, String website, String address, String phone, String fieldOfWork, String redirect, String activationUrl
) throws DatabaseException, EmailServiceException {
if (StringUtils.isBlank(email)) {
throw new DatabaseException(ProblemType.INVALIDARGUMENTS);
}
if (StringUtils.isBlank(redirect)) {
throw new DatabaseException(ProblemType.INVALIDARGUMENTS);
}
if (StringUtils.isBlank(username)) {
throw new DatabaseException(ProblemType.NO_USERNAME);
}
if (findByName(username) != null) {
