Got it to login and remember username and token.
added a stay logged in option.
Added a refresh button to sensor readings.
df
Added a spinner and now refresh sensor values on reload.