able to corretly find the password for each user. also fixed a bug in accessing the folders. When using opendir, extra variables were made such as . and ..