Fixed buggy issues update upon login
Refactored code
Closed bufferedReader which was previously missed out