Fixed exception for duplicate username registration
Added UserDAO.getByUsername() method