New Function

Created the bruteCheck function to move some of the brute force attack
checking out of the actual login function.