Started to write prefernces to save status (logged in or not)