register & login component client-side coding