localhost check
fixed bugs with auto_accept friendship and display of errors