Made checkstyle changes to MainActivity.java
Made checkstyle changes to RegisterTask.java