added tests and functions so users could signin and signout