Implemented login button click handler
Added method to persist login information