Added user authenticationa nd password encryption