Implemented localStorage of log in status