More comments and removed depreciated method

Added more comments for better readability and removed the getText()
method for the password fields. Also updated it so it sends data in a
HashMap.