working login,register and update pages