added profile pic, and fixed registration

changed profileDAO as query not working as intended.