manual meter data add page was getting timeout error, moved upload function to worker to avoid this
made login template use next variable for redirect after successful login