now checking if id of user object is greater or equal to 1 instead of null
now loading login template if a user exists in localstorage