refactor server.rb to use transaction scripts for sign up and sign in routes, which are located in scripts folder.