added registerAttempt method to RegisterActivity class