Minor Changes

Added static methods for setting a cookie
Minor bug fixes with user login, fixed mixed session/cookie status