Handled error where user can enter empty string as chacater name and realm.
Added web exceptions