Fixed A few bugs in view Exercise Form

- Fixed bugs for code breaking when no exercises where found in the
search for users
- Modified some functions to support if an admin or a user is logged and
display the correct information