added user register and store functionality