Added include file for 500 response

Fixed signIn bug
added tests for signIn func