----redirect after login success fixed -- localstorage added for loggeIn and online status ----