Added signup functionality and corresponding RSpec tests.