Cleaned up the code and added comments
Search user by ID works (will add the secondary search next)
New registration works (still need to control the data entered into the text fields)
Edit user details works (controling the fields is needed).

On monday I will add the secondary search (easy)
And start working on the appointments.