removed all print statements and fixed a bug with user page